]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControl: Store search entry container
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 15 Feb 2021 20:38:36 +0000 (17:38 -0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 2 Mar 2021 23:14:07 +0000 (23:14 +0000)
It'll be used by the next commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1678>

js/ui/overviewControls.js

index 5e2f8f9f83b6c7773b9a4b74b9de754074dcf60f..4f0abeb281ec7c73faa1b8224ca55ae00a972846 100644 (file)
@@ -273,7 +273,7 @@ class ControlsManager extends St.Widget {
             can_focus: true,
         });
         this._searchEntry.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS);
-        const searchEntryBin = new St.Bin({
+        this._searchEntryBin = new St.Bin({
             child: this._searchEntry,
             x_align: Clutter.ActorAlign.CENTER,
         });
@@ -323,14 +323,15 @@ class ControlsManager extends St.Widget {
             this._stateAdjustment);
         this._appDisplay = new AppDisplay.AppDisplay();
 
-        this.add_child(searchEntryBin);
+        this.add_child(this._searchEntryBin);
         this.add_child(this._appDisplay);
         this.add_child(this.dash);
         this.add_child(this._searchController);
         this.add_child(this._thumbnailsBox);
         this.add_child(this._workspacesDisplay);
 
-        this.layout_manager = new ControlsManagerLayout(searchEntryBin,
+        this.layout_manager = new ControlsManagerLayout(
+            this._searchEntryBin,
             this._appDisplay,
             this._workspacesDisplay,
             this._thumbnailsBox,